Page({
    data: {
        mobilepinpai: "",
        mobileModel: "",
        mobilesystem: "",
        screenWidth: "",
        screenHeight: "",
        language: "",
        version: "",
        xinagsubi: ""
    },
    onShareTimeline: function() {
        return {
            title: "我的手机是正品，你也来鉴定一下吧",
            imageUrl: "/images/hh.jpg"
        };
    },
    onShareAppMessage: function(e) {
        return "button" === e.from && console.log(e.target), {
            title: "我的手机是正品，你也来鉴定一下吧",
            imageUrl: "/images/hh.jpg"
        };
    },
    onLoad: function() {
        var e = this;
        wx.getSystemInfo({
            success: function(i) {
                var n = i.model;
                if (console.log(n), -1 !== n.indexOf("<")) var a = n.indexOf("<"), s = n.substr(0, a); else s = n;
                if (-1 !== n.indexOf("(") ? (a = n.indexOf("("), s = n.substr(0, a)) : s = n, -1 !== n.indexOf("<") ? (a = n.indexOf("<"), 
                s = n.substr(0, a)) : s = n, n = s, "zh_HK" == i.language || "zh_TW" == i.language) var t = "繁体中文"; else t = "en" == i.language ? "英文" : "简体中文";
                var o = parseInt(i.screenWidth * i.pixelRatio), r = parseInt(i.screenHeight * i.pixelRatio);
                e.setData({
                    mobilepinpai: i.brand,
                    mobileModel: n,
                    mobilesystem: i.system,
                    xiangsubi: i.pixelRatio,
                    screenWidth: o,
                    screenHeight: r,
                    language: t,
                    version: i.version
                });
            }
        });
    }
});